import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';

@Component({
  selector: 'app-home',
  templateUrl: './home.component.html',
  styleUrls: ['./home.component.less']
})
export class HomeComponent implements OnInit {

  constructor(private router: Router) { }

  ngOnInit(): void {
    console.log('HomeComponent INIT');
  }

  gotoMain() {
    this.router.navigateByUrl('/main');
  }

  gotoEmpty() {
    this.router.navigateByUrl('/main/empty');
  }

  gotoChart() {
    this.router.navigateByUrl('/main/chart');
  }
}
